* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #222;
    transform-style: preserve-3d;
}
.box {
    position: relative;
    display: flex;
    transform-style: preserve-3d;
    perspective: 500px;
}
.box .item {
    position: absolute;
    top: calc(50% - 150px);
    left: calc(50% - 100px);
    width: 200px;
    height: 300px;
    background: #fff;
    transition: 0.5s;
    box-shadow:  0 0  50px rgba(0,0,0,0.5);
    transform-style: preserve-3d;
    transform-origin: bottom;
    user-select: none;
    -webkit-box-reflect: below 1px linear-gradient(transparent, transparent, #0002);
}
.box .item:nth-child(1) {
    transform: translate3d(-250px, 0,0) scale(0.8) rotateY(25deg);
    z-index: 1;
}
.box .item:nth-child(2) {
    transform: translate3d(-250px, 0,0) scale(0.8) rotateY(25deg);
    z-index: 2;
}
.box .item:nth-child(3) {
    transform: translate3d(-150px, 0,0) scale(0.9) rotateY(15deg);
    z-index: 3;
}
.box .item:nth-child(4) {
    transform: translate3d(0px, 0,0) scale(1) rotateY(0deg);
    z-index: 4;
}
.box .item:nth-child(5) {
    transform: translate3d(150px, 0,0) scale(0.9) rotateY(-15deg);
    z-index: 3;
}
.box .item:nth-child(6) {
    transform: translate3d(250px, 0,0) scale(0.8) rotateY(-25deg);
    z-index: 2;
}
.box .item:nth-child(7) {
    transform: translate3d(250px, 0,0) scale(0.8) rotateY(-25deg);
    z-index: -1;
}
.box .item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.buttons {
    position: absolute;
    bottom: 75px;
    display: flex;
    gap: 20px;
}
.buttons span {
    position: relative;
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.5;
}
.buttons span:hover {
    opacity: 1;
}
.buttons span::before {
    content: '';
    position: absolute;
    left: 20px;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    rotate: -45deg;
}
.buttons span:last-child:before {
    content: '';
    position: absolute;
    left: initial;
    right: 20px;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    rotate: 135deg;
}

